def mycopy(file1,file2):
  '''
  wenjina
  '''
  f1 = open(file1,"rb")
  f2 = open(file2,"wb")
  content = f1.readline()
  while len(content)>0:
    f2.write(content)
    content = f1.readline()
  f1.close()
  f2.close()

mycopy("./a.jpg","c.jpg")